package com.panfeng.xcloud.common.security.config;

import com.panfeng.xcloud.common.core.thread.AsyncHttpClients;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * 异步的httpclient配置
 *
 * @author xiaobo
 * @version 1.0
 * @since 2018-12-28
 */
@Configuration
public class AsyncHttpClientsConfig {

    @Bean
    @ConditionalOnMissingBean
    public AsyncHttpClients asyncHttpClients(){
        return new AsyncHttpClients();
    }
}
